<%layout("/common/layout.html"){%>

<br>

<main>
    <div class="order-details">
        <div class="title">确定订单</div>
        <div class=" goods-table">
            <table class="container-fluid">
                <tr class="row head">
                    <td colspan="3" class="col-md-6 goods-info">商品信息</td>
                    <td class="col-md-2">价格</td>
                    <td class="col-md-2">数量</td>
                    <td class="col-md-2">合计</td>
                </tr>
                <tr class="row order-cont">
                    <td class="col-md-2"><img src="${design.img1}" height="170" width="150" alt=""></td>
                    <td class="col-md-2" id="desc">${design.name}</td>
                    <td class="col-md-2" id="goods-prefer">
                        <ul>
                            <li>尺码：${printSize(order.size)}</li>
                        </ul>
                    </td>
                    <td class="col-md-2" id="single-price">${design.price}元</td>
                    <td class="col-md-2" id="total-count">${order.count}</td>
                    <td class="col-md-2" id="total-price">${design.price*order.count}元</td>
                </tr>
            </table>
        </div>
    </div>

    <form action="/design/addOrder" method="post">

        <input type="hidden" name="design" value="${design.id}">

        <div class="liuyan container">
            <!-- <div class="title col-md-2">我要留言</div>
            <div class="liuyan-form col-md-10">
              <form class="from-group">
                <textarea name="liuyan-content" rows="5"></textarea>
              </form>
            </div> -->
            <div class="form-group">
                <label for="liuyan-title" class="col-md-offset-1 col-md-1 control-label liuyan-title">我要留言</label>

                <div class="col-md-7">
            <textarea class="form-control" name="content" rows="3" id="liuyan-title" placeholder="留言内容">
            </textarea>
                </div>
                <div class="col-md-3" id="deliver">
                    <label for="deliver-type" class="col-md-12">配送方式</label>

                    <select name="deliver" name="trans" class="col-md-7">
                        <option value="1">快递：10.00元</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="container confirm-info">
            <div class="pay-real col-md-4 col-md-offset-8">实付款：<span class="money">${design.price*order.count+10}</span>元
            </div>
            <div class="real-addr col-md-4 col-md-offset-8">
                <p class="addr">寄送至：<span class="addr">${session.sessionEnv.user.address}</span></p>

                <p class="receiver">
                    <span class="name">收件人：<span class="receiver">${session.sessionEnv.user.name}</span></span>
                    <span class="tel">电话：<span class="tel">${session.sessionEnv.user.phone}</span></span>
                </p>
            </div>
            <div class="event-action col-md-4 col-md-offset-8">
                <a href="#shopping-cart" title="shopping-cart" class="col-md-5">返回购物车</a>
                <button type="submit" class="btn btn-danger col-md-offset-3 col-md-4">
                    <span class="glyphicon glyphicon-pencil"></span>提交订单
                </button>
            </div>
        </div>
    </form>
</main>

<%}%>